package com.duguo.dynamicmvc.factory.utils;

public class ChangeOnceBoolean {
	
	private boolean value;
	private boolean initValue;
	
	public ChangeOnceBoolean(boolean initValue){
		this.initValue=initValue;
		value=initValue;
	}

	public boolean isTrue() {
		return value;
	}

	public void setValue(boolean value) {
		if(initValue==this.value)
			this.value = value;
	}

}
